package com.example.agricultural_big_data.service;

import com.alibaba.fastjson.JSONObject;
import com.example.agricultural_big_data.pojo.User;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.util.List;


/**
 * @author xiao yang
 * @Description:
 * @date 2021/1/3114:42
 */
public interface UserService {

    JSONObject register(JSONObject data) throws UnsupportedEncodingException, NoSuchAlgorithmException;
    JSONObject userLogin(JSONObject data) throws UnsupportedEncodingException, NoSuchAlgorithmException;
    JSONObject masterRegister(JSONObject data) throws UnsupportedEncodingException, NoSuchAlgorithmException;

    JSONObject getInfoById(String userId);

    List<User> getUserList(User user);

    int addUser(User user) throws UnsupportedEncodingException, NoSuchAlgorithmException;
}
